using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmPsEmpEducation")]
    public class PsEmpEducation
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "EduId", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public int EduId { get; set; }

		[ForeignKey("Emp")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public Nullable<int> EmpId { get; set; }

		[ForeignKey("EduDegree")]
		[DataMember, Display(Name = "EduDegreeId", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public Nullable<int> EduDegreeId { get; set; }

		[ForeignKey("EduQual")]
		[DataMember, Display(Name = "EduQualId", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public Nullable<int> EduQualId { get; set; }

		[ForeignKey("EduIns")]
		[DataMember, Display(Name = "EduInsId", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public Nullable<int> EduInsId { get; set; }

		[ForeignKey("EduMajor")]
		[DataMember, Display(Name = "EduMajorId", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public Nullable<int> EduMajorId { get; set; }

		[DataMember, Display(Name = "StartDate", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public Nullable<System.DateTime> StartDate { get; set; }

		[DataMember, Display(Name = "EduStartYear", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public Nullable<int> EduStartYear { get; set; }

		[DataMember, Display(Name = "EndDate", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public Nullable<System.DateTime> EndDate { get; set; }

		[DataMember, Display(Name = "EduEndYear", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public Nullable<int> EduEndYear { get; set; }

        //[ForeignKey("FundType")]
		[DataMember, Display(Name = "FundTypeId", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public Nullable<int> FundTypeId { get; set; }

		[DataMember, Display(Name = "Gpa", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public Nullable<decimal> Gpa { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }


		[DataMember, Display(Name = "HrmPsEmployees", ResourceType = typeof(Resources.PsEmpEducationsResource))]
        public virtual HRM.Employee HrmPsEmployees { get; set; }

		public virtual HRM.Employee Emp { get; set; }

		public virtual HRM.MasEduDegree EduDegree { get; set; }

		public virtual HRM.MasEduQualification EduQual { get; set; }

		public virtual HRM.MasEduInstitute EduIns { get; set; }

		public virtual HRM.MasEduMajor EduMajor { get; set; }

        //public virtual HRM.WelfareFundType FundType { get; set; }

    }
}